<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form>
    姓名:<input type="text" name="name">
    价格:<input type="text" name="price">

            <select name="brand">
               <option value="">请输入出版社 </option>
                {% for foo in brand %}


                    <option value="{{ foo.id }}">{{ foo.name }}</option>
                {% endfor %}
            </select>
    <input type="submit" value="查询">
</form>


<table>
    <tr>
            <td>id</td>
                <td>name</td>
                <td>price</td>
                <td>number</td>
                <td>
                    操作
                </td>
    </tr>
    {% for item in data_goods %}
        <tr>
                <td>{{ item.id }}</td>
                <td>{{ item.name }}</td>
                <td>{{ item.price }}</td>
                <td>{{ item.number }}</td>
                <td>
                    <a href="/goods/del/?id={{ item.id }}" >删除</a>
{#                    <a href="/goods/select/?id={{ item.id }}" >查看</a>#}
                    <a href="/goods/select/{{ item.id }}"/>查看</a>

                    <a href="/goods/update/?id={{ item.id }}">修改</a>
                </td>
        </tr>
    {% endfor %}
    

</table>
<a href="/goods/add/">跳转到添加</a>
</body>
</html>